package com.wf.netty.order;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * 功能描述
 *
 * @author wf
 * @since 2022/5/13
 */
public class EchoPipeLineInitialier extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().addLast(new EchoInboundHandler("inBound1", false))
                .addLast(new EchoInboundHandler("inBound2", false))
                .addLast(new EchoInboundHandler("inBound3", true))
                .addLast(new EchoOutBoundHandler("outBound1"))
                .addLast(new EchoOutBoundHandler("outBound2"))
                .addLast(new EchoOutBoundHandler("outBound3"));
    }
}
